package cn.com.dwr.service;

import cn.com.dwr.common.dto.OrderDto;
import cn.com.dwr.entity.AppOrder;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 邓文润
* @description 针对表【app_order】的数据库操作Service
* @createDate 2023-12-12 07:13:55
*/
public interface AppOrderService extends IService<AppOrder> {

    Object preview(OrderDto orderDto);

    Object create(OrderDto orderDto);

    AppOrder getBySn(String orderSn);

    AppOrder getOwnBySn(String orderSn);

    AppOrder getOwnById(Long orderId);

    Object getOrderCount();

    Object getPage(Page page, long userId, Integer status);

    Object detail(Long id);

    void cancel(Long id);

    void delete(Long id);

    Object getDeliveryInfo(Long id) throws Exception;

    void confirm(Long id);
}
